Skip to content

Add a headless --convert command for SketchUp files - #33

Merged
dannycoulombe merged 2 commits into
BenchUp3D:mainfrom
Maaxion:headless-skp-convert
Nov 12, 2026
Merged

dannycoulombe merged 2 commits into
BenchUp3D:mainfrom
Maaxion:headless-skp-convert

Conversation

@Maaxion

@Maaxion Maaxion commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

One-line description

Add benchup-app --convert input.skp output.bup to convert SketchUp files to BenchUp projects without opening a window or initializing a GPU.

Changes in detail

  • The new command writes the same project as File → Import SketchUp into an empty model followed by Save, minus the viewport preview.
  • It runs next to the existing --thumbnail command, before any window, GPU or user data is set up, which makes batch conversion of a folder of old models scriptable.
  • The two new argument errors go through the message catalog (English and Simplified Chinese).
  • docs/desktop.md documents the command.

Testing

  • Two new tests convert both bundled SKP fixtures and cover bad and missing input; both pass.
  • cargo check --workspace --target wasm32-unknown-unknown --locked passes.
  • cargo test -p benchup-app --locked --lib on macOS (Apple Silicon): 989 passed, 27 failed. The same 27 tests fail on an unmodified main checkout on this machine (987 passed, 27 failed), so they are not related to this change.
  • Used it to convert 26 real SketchUp furniture models: 25 converted, 1 was rejected by the reader as having no importable geometry.

Maaxion and others added 2 commits November 12, 2026 14:21
benchup-app --convert input.skp output.bup writes the same project as
File > Import SketchUp into an empty model followed by Save, without
opening a window or initializing a GPU.
@dannycoulombe
dannycoulombe merged commit dd79ed3 into BenchUp3D:main Nov 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants